package com.example.Service.impl;

import com.example.Mapper.RoleuMapper;
import com.example.Service.RoleuService;
import com.example.entity.Role;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class RoleuImpl implements RoleuService {
    @Autowired
    RoleuMapper roleuMapper;
    @Override
    public List<Role> select(Role role) {
       return roleuMapper.select(role);
    }

    @Override
    public int insert(Role role) {
        return roleuMapper.insert(role);
    }

    @Override
    public int update(Role role) {
        return roleuMapper.update(role);
    }

    @Override
    public int delete(Role role) {
        return roleuMapper.delete(role);
    }
}
